/**
 * 
 */
package neptune.web.client.controller;

import neptune.web.client.view.LogInView;
import neptune.web.client.view.ViewManager;

import com.google.gwt.user.client.HistoryListener;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 *
 */
public class HistoryController implements HistoryListener{

	public void onHistoryChanged(String historyToken) {
		if(historyToken.equals(""))
			ViewManager.getViewManager().setActiveView(LogInView.DEFAULT_TOKEN);
		ViewManager.getViewManager().setActiveView(historyToken);
	}

}
